use serde::{Deserialize, Serialize};
#[derive(Debug, Deserialize,Clone)]
pub struct Config {
    pub server: Server,
    pub redis: Redis,
    pub file: File
}

#[derive(Debug, Deserialize, Serialize,Clone)]
pub struct Server {
    pub port: u16, // 监听端口
}
#[derive(Debug, Deserialize, Serialize,Clone)]
pub struct Redis{
    pub url: String,
    pub password: String, 
}

#[derive(Debug, Deserialize, Serialize,Clone)]
pub struct File {
    pub file_path: String,
    pub file_size_limit: u64, 
}